package frame.options.physicalNetworks;

import java.awt.event.KeyEvent;

import javax.swing.JMenu;
import frame.MopraFrame;

@SuppressWarnings("serial")
public class PhysicalNetworksMenu extends JMenu
{
	private OpenPhysicalNetworksMenuItem openPhysicalNetworksMenuItem;
	public OpenPhysicalNetworksMenuItem getOpenPhysicalNetworksMenuItem(){ return openPhysicalNetworksMenuItem; }
	public void setOpenPhysicalNetworksMenuItem( OpenPhysicalNetworksMenuItem openPhysicalNetworksMenuItem ){ this.openPhysicalNetworksMenuItem = openPhysicalNetworksMenuItem; }

	private CreatePhysicalNetworksMenuItem createPhysicalNetworksMenuItem;
	public CreatePhysicalNetworksMenuItem getCreatePhysicalNetworksMenuItem(){ return createPhysicalNetworksMenuItem; }
	public void setCreatePhysicalNetworksMenuItem( CreatePhysicalNetworksMenuItem createPhysicalNetworksMenuItem ){ this.createPhysicalNetworksMenuItem = createPhysicalNetworksMenuItem; }
	
	private SavePhysicalNetworksMenuItem savePhysicalNetworksMenuItem;
	public SavePhysicalNetworksMenuItem getSavePhysicalNetworksMenuItem(){ return savePhysicalNetworksMenuItem; }
	public void setSavePhysicalNetworksMenuItem( SavePhysicalNetworksMenuItem savePhysicalNetworksMenuItem ){ this.savePhysicalNetworksMenuItem = savePhysicalNetworksMenuItem; }

	public PhysicalNetworksMenu( MopraFrame mopraFrame )
	{
		this.setOpenPhysicalNetworksMenuItem( new OpenPhysicalNetworksMenuItem( mopraFrame ) );
		this.setCreatePhysicalNetworksMenuItem( new CreatePhysicalNetworksMenuItem( mopraFrame ) );
		this.setSavePhysicalNetworksMenuItem( new SavePhysicalNetworksMenuItem( mopraFrame ) );
		
		this.setText( "Physical Networks" );
		this.setMnemonic( KeyEvent.VK_P );
		this.add( this.getOpenPhysicalNetworksMenuItem() );
		this.add( this.getCreatePhysicalNetworksMenuItem() );
		this.add( this.getSavePhysicalNetworksMenuItem() );
		
		
	}
	
}
